import 'package:daoyi_ui_admin_getx/app/modules/discovery/discovery_view.dart';
import 'package:daoyi_ui_admin_getx/app/modules/home/home_view.dart';
import 'package:daoyi_ui_admin_getx/app/modules/mine/mine_view.dart';
import 'package:daoyi_ui_admin_getx/app/modules/navigation/navigation_view.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class TabsController extends GetxController {
  final currentIndex = 0.obs;
  final tabViewList = const <Widget>[
    HomeView(),
    NavigationView(),
    DiscoveryView(),
    MineView(),
  ];

  void changePage(int index) {
    currentIndex.value = index;
  }
}
